import type { ColumnsInterface } from '@/components/types/table'
import type { FoodLoveTypeMap, FoodTypeMap } from '@/types/views/food'

export const foodLoveTypeMap: FoodLoveTypeMap = {
    started: '喜欢',
    ordinary: '一般',
    disgusting: '不喜欢'
}

export const foodTypeMap: FoodTypeMap = {
    vegetable: '蔬菜',
    fruit: '水果',
    milkyTea: '奶茶',
    meat: '肉类',
    sweetmeat: '甜品',
    rest: '其他'
}

export const foodColumns: ColumnsInterface[] = [
    {
        prop: 'name',
        label: '名称',
        align: 'center',
        width: '200'
    },
    {
        prop: 'foodLoveView',
        label: '喜爱程度',
        align: 'center',
        width: '160'
    },
    {
        prop: 'foodTypeView',
        label: '食物类型',
        align: 'center',
        width: '160'
    },
    {
        prop: 'description',
        label: '描述',
        align: 'center',
    },
    {
        label: '操作',
        align: 'center',
        width: 200,
        slot: true,
        slotTag: 'edit'
    }
]
